package models

type MessageWrapper struct {
	Methods    []string       `json:"methods"`
	Messages   []*SendMessage `json:"messages"`
	TotalCount int64          `json:"totalCount"`
}

type SendMessage struct {
	Cid       string       `json:"cid"`
	From      string       `json:"from"`
	Height    int64        `json:"height"`
	Method    string       `json:"method"`
	Nonce     int64        `json:"nonce"`
	Receipt   *SendReceipt `json:"receipt"`
	Timestamp int64        `json:"timestamp"`
	To        string       `json:"to"`
	Value     string       `json:"value"`
}

type SendReceipt struct {
	ExitCode byte `json:"exitCode"`
}

type TransWrapper struct {
	Types      []string        `json:"types"`
	Transfers  []*TransMessage `json:"transfers"`
	TotalCount int64           `json:"totalCount"`
}

type TransMessage struct {
	Height    int64  `json:"height"`
	Timestamp int64  `json:"timestamp"`
	Message   string `json:"message"`
	From      string `json:"from"`
	To        string `json:"to"`
	Value     string `json:"value"`
	Type      string `json:"type"`
}
